package com.js.nickcar.entity.remote;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by LZY on 2017/9/29.
 */

public class CarBrandBean implements Parcelable {
    public interface TYPE{
        String TYPE_LETTER = "letter" ;
        String TYPE_CAR = "car" ;
    }

    private String car_brand_id;
    private String brand_name;
    private String pin;
    private String image;
    private String type;

    public String getBrand_name() {
        return brand_name;
    }

    public void setBrand_name(String brand_name) {
        this.brand_name = brand_name;
    }

    public String getCar_brand_id() {
        return car_brand_id;
    }

    public void setCar_brand_id(String car_brand_id) {
        this.car_brand_id = car_brand_id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getPin() {
        return pin;
    }

    public void setPin(String pin) {
        this.pin = pin;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "CarBrandBean{" +
                "brand_name='" + brand_name + '\'' +
                ", car_brand_id='" + car_brand_id + '\'' +
                ", pin='" + pin + '\'' +
                ", image='" + image + '\'' +
                ", type=" + type +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.car_brand_id);
        dest.writeString(this.brand_name);
        dest.writeString(this.pin);
        dest.writeString(this.image);
        dest.writeString(this.type);
    }

    public CarBrandBean() {
    }

    protected CarBrandBean(Parcel in) {
        this.car_brand_id = in.readString();
        this.brand_name = in.readString();
        this.pin = in.readString();
        this.image = in.readString();
        this.type = in.readString();
    }

    public static final Creator<CarBrandBean> CREATOR = new Creator<CarBrandBean>() {
        @Override
        public CarBrandBean createFromParcel(Parcel source) {
            return new CarBrandBean(source);
        }

        @Override
        public CarBrandBean[] newArray(int size) {
            return new CarBrandBean[size];
        }
    };
}
